import { defineStore, createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)

export * from "./modules/user";
export const useCounterStore = defineStore('counter', () => {
  const safeArea = uni.getWindowInfo().safeArea // 获取在竖屏正方向下的安全区域

  return { safeArea }
})


export default pinia